<?php
function callModule( $name ) {
	include( MOD_PATH."/$name/index.php" );
}

function redirect( $location ){

            if ( _isIIS() ) {

                        header("Refresh: 0;url=$location");

            } else {

                        header("Location: $location");

            }

}


function _isIIS() {

            if ( strpos( $_SERVER['SERVER_SOFTWARE'], "IIS" ) ) {

                        return true;

            } else {

                        return false;

            }

}



